package com.wn.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellow Docter
 * @since 2022-05-24
 */
public class Records implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    //对应的是 propertype 这个表中的 主键
    private Integer typeId;

    // 这里是 一个 费用的类型
    @TableField(exist = false)
    private PropertyType propertyType;

    private Double num;

    private Double num2;

    // 对应的是 houseId
    private Integer houseId;

    @TableField(exist = false)
    private House house;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date upTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date onTime;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date checkTime;

    private String meter;

    private String remarks;

    public PropertyType getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(PropertyType propertyType) {
        this.propertyType = propertyType;
    }

    public House getHouse() {
        return house;
    }

    public void setHouse(House house) {
        this.house = house;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public Double getNum() {
        return num;
    }

    public void setNum(Double num) {
        this.num = num;
    }
    public Double getNum2() {
        return num2;
    }

    public void setNum2(Double num2) {
        this.num2 = num2;
    }
    public Integer getHouseId() {
        return houseId;
    }

    public void setHouseId(Integer houseId) {
        this.houseId = houseId;
    }
    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }
    public Date getOnTime() {
        return onTime;
    }

    public void setOnTime(Date onTime) {
        this.onTime = onTime;
    }
    public Date getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(Date checkTime) {
        this.checkTime = checkTime;
    }
    public String getMeter() {
        return meter;
    }

    public void setMeter(String meter) {
        this.meter = meter;
    }
    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    @Override
    public String toString() {
        return "Records{" +
            "id=" + id +
            ", typeId=" + typeId +
            ", num=" + num +
            ", num2=" + num2 +
            ", houseId=" + houseId +
            ", upTime=" + upTime +
            ", onTime=" + onTime +
            ", checkTime=" + checkTime +
            ", meter=" + meter +
            ", remarks=" + remarks +
        "}";
    }
}
